<template>
  <el-container>
    <el-aside width="208px" class="flex">
      <nav-bar></nav-bar>
    </el-aside>
    <el-container class="paddinf-left">
      <el-header>
        <header-a></header-a>
      </el-header>
      <el-main>
        <router-view></router-view>
      </el-main>
    </el-container>
  </el-container>
</template>

<script>
import navBar from "@/pages/navBar/navBar";
import headerA from "@/share/headerA";
export default {
  name: "Home",
  components: {
    navBar,
    headerA
  }
};
</script>
<style  lang="less" scoped>
.el-main {
  line-height: normal !important;
}
.el-header,
.el-footer {
  background-color: #fff;
  color: #333;
  text-align: center;
  line-height: 60px;
}

.el-aside {
  color: #333;
  text-align: center;
  line-height: 200px;
  height: 940px;
}

.el-main {
  background-color: #e9eef3;
  color: #333;
  text-align: center;
  line-height: 160px;
}

body > .el-container {
  margin-bottom: 40px;
}

.el-container:nth-child(5) .el-aside,
.el-container:nth-child(6) .el-aside {
  line-height: 260px;
}

.el-container:nth-child(7) .el-aside {
  line-height: 320px;
}
.el-header {
  display: flex;
  flex-direction: row-reverse;
}
.el-aside {
  background: #fff !important;
}
.flex {
  position: fixed;
  left: 0;
}
.paddinf-left{
  padding-left: 208px;
}
</style>
